import axios from "@/axios";

//获取图片列表方法
export function getMainImage(id,page = 1)
{
    console.log(id);
    return axios.get(`/admin/image_class/${id}/image/${page}`);
}

//重命名图片
export function renameImage(id,name)
{
    return axios.post(`/admin/image/${id}`, {name});
}

//删除图片
export function removeImage(ids) {
    return axios.post('/admin/image/delete_all', {ids:ids});
}

const UploadActionPath = "/api/admin/image/upload";
export { UploadActionPath }


